.class public Lcom/glympse/platform/common/Recipient;
.super Ljava/lang/Object;
.source "Recipient.java"


# static fields
.field public static final ERecipientType_Email:I = 0x2

.field public static final ERecipientType_Facebook:I = 0x5

.field public static final ERecipientType_Glympse:I = 0x1

.field public static final ERecipientType_Other:I = -0x1

.field public static final ERecipientType_Sms:I = 0x3

.field public static final ERecipientType_Twitter:I = 0x4

.field public static final ERecipientType_Unknown:I = 0x0

.field public static final ESendState_ClientSending:I = 0x3

.field public static final ESendState_Failed:I = 0x4

.field public static final ESendState_NeedToSend:I = 0x1

.field public static final ESendState_None:I = 0x0

.field public static final ESendState_ServerSending:I = 0x2

.field public static final ESendState_Suceeded:I = 0x5


# instance fields
.field public m_eRecipientType:I

.field public m_eSendState:I

.field public m_fIsFacebookNumber:Z

.field public m_fIsTwitterNumber:Z

.field public m_lCreatedTime:J

.field public m_lFirstUseTime:J

.field public m_lLastUseTime:J

.field public m_lRecipientTicketId:J

.field public m_lTicketId:J

.field public m_nResult:I

.field public m_nUse:I

.field public m_strDisplayName:Ljava/lang/String;

.field public m_strRecipientUrl:Ljava/lang/String;

.field public m_strResult:Ljava/lang/String;

.field public m_strTo:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    const-wide/16 v2, 0x0

    const/4 v1, 0x0

    .line 58
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 39
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    .line 40
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    .line 41
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    .line 42
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    .line 43
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    .line 44
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 45
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 46
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 47
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    .line 48
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    .line 49
    const/4 v0, -0x1

    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    .line 50
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    .line 53
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eSendState:I

    .line 54
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    .line 55
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsFacebookNumber:Z

    .line 60
    return-void
.end method

.method public constructor <init>(I)V
    .locals 5
    .parameter "eRecipientType"

    .prologue
    const/4 v4, 0x0

    const-wide/16 v2, 0x0

    const/4 v1, 0x0

    .line 63
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 39
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    .line 40
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    .line 41
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    .line 42
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    .line 43
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    .line 44
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 45
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 46
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 47
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    .line 48
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    .line 49
    const/4 v0, -0x1

    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    .line 50
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    .line 53
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eSendState:I

    .line 54
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    .line 55
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsFacebookNumber:Z

    .line 65
    iput p1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 66
    return-void
.end method

.method public constructor <init>(Lcom/glympse/platform/common/Recipient;)V
    .locals 5
    .parameter "oRecipient"

    .prologue
    const/4 v4, 0x0

    const-wide/16 v2, 0x0

    const/4 v1, 0x0

    .line 88
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 39
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    .line 40
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    .line 41
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    .line 42
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    .line 43
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    .line 44
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 45
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 46
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 47
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    .line 48
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    .line 49
    const/4 v0, -0x1

    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    .line 50
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    .line 53
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eSendState:I

    .line 54
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    .line 55
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsFacebookNumber:Z

    .line 90
    iget v0, p1, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 91
    iget-object v0, p1, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    iput-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 92
    iget-object v0, p1, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    iput-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 94
    invoke-virtual {p0}, Lcom/glympse/platform/common/Recipient;->CheckForKnownNumbers()V

    .line 95
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;I)V
    .locals 5
    .parameter "strTo"
    .parameter "eRecipientType"

    .prologue
    const/4 v4, 0x0

    const-wide/16 v2, 0x0

    const/4 v1, 0x0

    .line 69
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 39
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    .line 40
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    .line 41
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    .line 42
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    .line 43
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    .line 44
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 45
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 46
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 47
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    .line 48
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    .line 49
    const/4 v0, -0x1

    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    .line 50
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    .line 53
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eSendState:I

    .line 54
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    .line 55
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsFacebookNumber:Z

    .line 71
    if-nez p2, :cond_0

    invoke-static {p1}, Lcom/glympse/platform/common/Recipient;->GuessType(Ljava/lang/String;)I

    move-result v0

    :goto_0
    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 72
    iput-object p1, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 74
    invoke-virtual {p0}, Lcom/glympse/platform/common/Recipient;->CheckForKnownNumbers()V

    .line 75
    return-void

    :cond_0
    move v0, p2

    .line 71
    goto :goto_0
.end method

.method public constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
    .locals 5
    .parameter "strTo"
    .parameter "eRecipientType"
    .parameter "strDisplayName"

    .prologue
    const/4 v4, 0x0

    const-wide/16 v2, 0x0

    const/4 v1, 0x0

    .line 78
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 39
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    .line 40
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    .line 41
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    .line 42
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    .line 43
    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    .line 44
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 45
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 46
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 47
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    .line 48
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    .line 49
    const/4 v0, -0x1

    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    .line 50
    iput-object v4, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    .line 53
    iput v1, p0, Lcom/glympse/platform/common/Recipient;->m_eSendState:I

    .line 54
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    .line 55
    iput-boolean v1, p0, Lcom/glympse/platform/common/Recipient;->m_fIsFacebookNumber:Z

    .line 80
    if-nez p2, :cond_0

    invoke-static {p1}, Lcom/glympse/platform/common/Recipient;->GuessType(Ljava/lang/String;)I

    move-result v0

    :goto_0
    iput v0, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 81
    iput-object p1, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 82
    iput-object p3, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 84
    invoke-virtual {p0}, Lcom/glympse/platform/common/Recipient;->CheckForKnownNumbers()V

    .line 85
    return-void

    :cond_0
    move v0, p2

    .line 80
    goto :goto_0
.end method

.method public static GuessType(Ljava/lang/String;)I
    .locals 8
    .parameter "strRecipient"

    .prologue
    .line 99
    invoke-static {p0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_1

    .line 102
    invoke-virtual {p0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    .line 105
    .local v5, str:Ljava/lang/String;
    const/16 v6, 0x40

    invoke-virtual {v5, v6}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    .line 106
    .local v2, nAt:I
    const/16 v6, 0x2e

    invoke-virtual {v5, v6}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v4

    .line 107
    .local v4, nDot:I
    if-lez v2, :cond_0

    add-int/lit8 v6, v2, 0x1

    if-le v4, v6, :cond_0

    add-int/lit8 v6, v4, 0x1

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v7

    if-ge v6, v7, :cond_0

    .line 109
    const/4 v6, 0x2

    .line 125
    .end local v2           #nAt:I
    .end local v4           #nDot:I
    .end local v5           #str:Ljava/lang/String;
    :goto_0
    return v6

    .line 113
    .restart local v2       #nAt:I
    .restart local v4       #nDot:I
    .restart local v5       #str:Ljava/lang/String;
    :cond_0
    invoke-virtual {v5}, Ljava/lang/String;->toCharArray()[C

    move-result-object v0

    .line 114
    .local v0, aChars:[C
    const/4 v3, 0x0

    .local v3, nChar:I
    :goto_1
    array-length v6, v0

    if-lt v3, v6, :cond_2

    .line 125
    .end local v0           #aChars:[C
    .end local v2           #nAt:I
    .end local v3           #nChar:I
    .end local v4           #nDot:I
    .end local v5           #str:Ljava/lang/String;
    :cond_1
    const/4 v6, 0x0

    goto :goto_0

    .line 116
    .restart local v0       #aChars:[C
    .restart local v2       #nAt:I
    .restart local v3       #nChar:I
    .restart local v4       #nDot:I
    .restart local v5       #str:Ljava/lang/String;
    :cond_2
    aget-char v1, v0, v3

    .line 118
    .local v1, cChar:C
    const/16 v6, 0x30

    if-lt v1, v6, :cond_3

    const/16 v6, 0x39

    if-gt v1, v6, :cond_3

    .line 120
    const/4 v6, 0x3

    goto :goto_0

    .line 114
    :cond_3
    add-int/lit8 v3, v3, 0x1

    goto :goto_1
.end method

.method public static IsFacebookNumber(Ljava/lang/String;)Z
    .locals 5
    .parameter "strNumber"

    .prologue
    .line 159
    invoke-static {p0}, Lcom/glympse/platform/common/Helpers;->GetDigitsString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 160
    .local v2, strDigits:Ljava/lang/String;
    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 162
    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v0

    .line 163
    .local v0, lNumber:J
    const-wide/16 v3, 0x7f99

    cmp-long v3, v0, v3

    if-nez v3, :cond_0

    .line 165
    const/4 v3, 0x1

    .line 168
    .end local v0           #lNumber:J
    :goto_0
    return v3

    :cond_0
    const/4 v3, 0x0

    goto :goto_0
.end method

.method public static IsTwitterNumber(Ljava/lang/String;)Z
    .locals 5
    .parameter "strNumber"

    .prologue
    .line 134
    invoke-static {p0}, Lcom/glympse/platform/common/Helpers;->GetDigitsString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 135
    .local v2, strDigits:Ljava/lang/String;
    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1

    .line 137
    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v0

    .line 138
    .local v0, lNumber:J
    const-wide/32 v3, 0x9dd4

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 139
    const-wide/16 v3, 0x52dc

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 140
    const-wide/32 v3, 0x151ac

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 141
    const-wide/16 v3, 0x231b

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 142
    const-wide v3, 0x478fd18d849L

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 143
    const-wide v3, 0x68845c05b849L

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 144
    const-wide v3, 0xae1c590ceL

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 145
    const-wide v3, 0x10afee188ceL

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 146
    const-wide/32 v3, 0x54f02f

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 147
    const-wide v3, 0x6838846c8fL

    cmp-long v3, v0, v3

    if-eqz v3, :cond_0

    .line 148
    const-wide v3, 0xa695b9c1c8fL

    cmp-long v3, v0, v3

    if-nez v3, :cond_1

    .line 150
    :cond_0
    const/4 v3, 0x1

    .line 153
    .end local v0           #lNumber:J
    :goto_0
    return v3

    :cond_1
    const/4 v3, 0x0

    goto :goto_0
.end method


# virtual methods
.method public CheckForKnownNumbers()V
    .locals 4

    .prologue
    const/4 v3, 0x3

    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 180
    iget v0, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v3, v0, :cond_0

    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Recipient;->IsTwitterNumber(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v2

    :goto_0
    iput-boolean v0, p0, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    .line 181
    iget v0, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v3, v0, :cond_1

    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Recipient;->IsFacebookNumber(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v2

    :goto_1
    iput-boolean v0, p0, Lcom/glympse/platform/common/Recipient;->m_fIsFacebookNumber:Z

    .line 182
    return-void

    :cond_0
    move v0, v1

    .line 180
    goto :goto_0

    :cond_1
    move v0, v1

    .line 181
    goto :goto_1
.end method

.method public GetDisplayText()Ljava/lang/String;
    .locals 2

    .prologue
    .line 187
    const/4 v0, 0x4

    iget v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v0, v1, :cond_2

    .line 189
    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 191
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Twitter ("

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 219
    :goto_0
    return-object v0

    .line 193
    :cond_0
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v0, v0, Lcom/glympse/platform/Config;->m_strTwitterName:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 195
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Twitter ("

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v1, v1, Lcom/glympse/platform/Config;->m_strTwitterName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 197
    :cond_1
    const-string v0, "Twitter"

    goto :goto_0

    .line 199
    :cond_2
    const/4 v0, 0x5

    iget v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v0, v1, :cond_5

    .line 201
    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    .line 203
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Facebook ("

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 205
    :cond_3
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v0, v0, Lcom/glympse/platform/Config;->m_strFacebookName:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_4

    .line 207
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Facebook ("

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v1, v1, Lcom/glympse/platform/Config;->m_strFacebookName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 209
    :cond_4
    const-string v0, "Facebook"

    goto/16 :goto_0

    .line 211
    :cond_5
    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_6

    .line 213
    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    goto/16 :goto_0

    .line 215
    :cond_6
    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_7

    .line 217
    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    goto/16 :goto_0

    .line 219
    :cond_7
    const-string v0, "Unknown"

    goto/16 :goto_0
.end method

.method public GuessType()I
    .locals 1

    .prologue
    .line 174
    iget-object v0, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v0}, Lcom/glympse/platform/common/Recipient;->GuessType(Ljava/lang/String;)I

    move-result v0

    return v0
.end method

.method public Parse(Lcom/glympse/platform/GVector$NameValueNodes;)V
    .locals 7
    .parameter

    .prologue
    .local p1, listNameValues:Lcom/glympse/platform/GVector$NameValueNodes;,"Lcom/glympse/platform/GVector$NameValueNodes;"
    const/4 v6, 0x0

    const/4 v5, 0x3

    const/4 v4, -0x1

    .line 226
    invoke-virtual {p1}, Lcom/glympse/platform/GVector$NameValueNodes;->elements()Ljava/util/Enumeration;

    move-result-object v0

    .local v0, iter:Ljava/util/Enumeration;
    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-nez v2, :cond_5

    .line 334
    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-eq v4, v2, :cond_1

    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v5, v2, :cond_2

    .line 335
    :cond_1
    iget-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    iget-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    const-string v3, "twitter"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 337
    const/4 v2, 0x4

    iput v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 338
    iput-object v6, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 341
    :cond_2
    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v4, v2, :cond_3

    iget-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    iget-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    const-string v3, "facebook"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 343
    const/4 v2, 0x5

    iput v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 344
    iput-object v6, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 348
    :cond_3
    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-nez v2, :cond_4

    .line 350
    invoke-virtual {p0}, Lcom/glympse/platform/common/Recipient;->GuessType()I

    move-result v2

    iput v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    .line 353
    :cond_4
    invoke-virtual {p0}, Lcom/glympse/platform/common/Recipient;->CheckForKnownNumbers()V

    .line 354
    return-void

    .line 228
    :cond_5
    invoke-interface {v0}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/glympse/platform/common/NameValueNode;

    .line 231
    .local v1, oNodeCur:Lcom/glympse/platform/common/NameValueNode;
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    if-eqz v2, :cond_0

    .line 237
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "tid"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 239
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->Base32ToLong(Ljava/lang/String;)J

    move-result-wide v2

    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    goto :goto_0

    .line 243
    :cond_6
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "to"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 245
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    iput-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    .line 246
    iget-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    goto/16 :goto_0

    .line 250
    :cond_7
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "tot"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_c

    .line 254
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    const-string v3, "sms"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    move v2, v5

    .line 253
    :goto_1
    iput v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    goto/16 :goto_0

    .line 255
    :cond_8
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    const-string v3, "email"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_9

    const/4 v2, 0x2

    goto :goto_1

    .line 256
    :cond_9
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    const-string v3, "glympse"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_a

    const/4 v2, 0x1

    goto :goto_1

    .line 257
    :cond_a
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    const-string v3, "other"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_b

    move v2, v4

    goto :goto_1

    .line 258
    :cond_b
    const/4 v2, 0x0

    goto :goto_1

    .line 262
    :cond_c
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "dpn"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_d

    .line 264
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    iput-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    .line 265
    iget-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    goto/16 :goto_0

    .line 269
    :cond_d
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "cts"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_e

    .line 271
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v2

    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    goto/16 :goto_0

    .line 275
    :cond_e
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "rtid"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_f

    .line 277
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->Base32ToLong(Ljava/lang/String;)J

    move-result-wide v2

    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    goto/16 :goto_0

    .line 281
    :cond_f
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "rurl"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_10

    .line 283
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    iput-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    .line 284
    iget-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    goto/16 :goto_0

    .line 288
    :cond_10
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "use"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_11

    .line 290
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v2

    iput v2, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    goto/16 :goto_0

    .line 294
    :cond_11
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "futs"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_12

    .line 296
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v2

    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    goto/16 :goto_0

    .line 300
    :cond_12
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "luts"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_13

    .line 302
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v2

    iput-wide v2, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    goto/16 :goto_0

    .line 306
    :cond_13
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "rc"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_14

    .line 308
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v2

    iput v2, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    goto/16 :goto_0

    .line 312
    :cond_14
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "rs"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_15

    .line 314
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    iput-object v2, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    goto/16 :goto_0

    .line 319
    :cond_15
    iget-object v2, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v3, "sto"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 327
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Unknown recipient value: \""

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, v1, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ":"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, v1, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto/16 :goto_0
.end method

.method public Serialize(Ljava/lang/StringBuffer;)V
    .locals 8
    .parameter "strbuf"

    .prologue
    const/4 v7, 0x1

    const/16 v6, 0x22

    const-wide/16 v4, 0x0

    const/16 v3, 0x2c

    .line 359
    invoke-virtual {p1}, Ljava/lang/StringBuffer;->length()I

    move-result v1

    if-lez v1, :cond_14

    move v0, v7

    .line 362
    .local v0, fAppend:Z
    :goto_0
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_1

    .line 364
    if-eqz v0, :cond_0

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_0
    const/4 v0, 0x1

    .line 365
    const-string v1, "tid:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 366
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lTicketId:J

    invoke-static {v1, v2}, Lcom/glympse/platform/common/Helpers;->LongToBase32(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 370
    :cond_1
    const/4 v1, 0x4

    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v1, v2, :cond_15

    .line 372
    if-eqz v0, :cond_2

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_2
    const/4 v0, 0x1

    .line 373
    const-string v1, "tot:other,to:\"twitter\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 423
    :cond_3
    :goto_1
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_5

    .line 425
    if-eqz v0, :cond_4

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_4
    const/4 v0, 0x1

    .line 426
    const-string v1, "cts:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 427
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lCreatedTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 431
    :cond_5
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_7

    .line 433
    if-eqz v0, :cond_6

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_6
    const/4 v0, 0x1

    .line 434
    const-string v1, "rtid:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 435
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lRecipientTicketId:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 439
    :cond_7
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_9

    .line 441
    if-eqz v0, :cond_8

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_8
    const/4 v0, 0x1

    .line 442
    const-string v1, "rurl:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 443
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->EncodeProtocolString(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    .line 444
    invoke-virtual {p1, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 448
    :cond_9
    iget v1, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    if-eqz v1, :cond_b

    .line 450
    if-eqz v0, :cond_a

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_a
    const/4 v0, 0x1

    .line 451
    const-string v1, "use:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 452
    iget v1, p0, Lcom/glympse/platform/common/Recipient;->m_nUse:I

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    .line 456
    :cond_b
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_d

    .line 458
    if-eqz v0, :cond_c

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_c
    const/4 v0, 0x1

    .line 459
    const-string v1, "futs:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 460
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lFirstUseTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 464
    :cond_d
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_f

    .line 466
    if-eqz v0, :cond_e

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_e
    const/4 v0, 0x1

    .line 467
    const-string v1, "luts:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 468
    iget-wide v1, p0, Lcom/glympse/platform/common/Recipient;->m_lLastUseTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 472
    :cond_f
    const/4 v1, -0x1

    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    if-eq v1, v2, :cond_11

    .line 474
    if-eqz v0, :cond_10

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_10
    const/4 v0, 0x1

    .line 475
    const-string v1, "rc:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 476
    iget v1, p0, Lcom/glympse/platform/common/Recipient;->m_nResult:I

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    .line 480
    :cond_11
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_13

    .line 482
    if-eqz v0, :cond_12

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_12
    const/4 v0, 0x1

    .line 483
    const-string v1, "rs:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 484
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strResult:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 486
    :cond_13
    return-void

    .line 359
    .end local v0           #fAppend:Z
    :cond_14
    const/4 v1, 0x0

    move v0, v1

    goto/16 :goto_0

    .line 377
    .restart local v0       #fAppend:Z
    :cond_15
    const/4 v1, 0x5

    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v1, v2, :cond_17

    .line 379
    if-eqz v0, :cond_16

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_16
    const/4 v0, 0x1

    .line 380
    const-string v1, "tot:other,to:\"facebook\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto/16 :goto_1

    .line 386
    :cond_17
    const/4 v1, 0x3

    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v1, v2, :cond_1d

    .line 388
    if-eqz v0, :cond_18

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_18
    const/4 v0, 0x1

    .line 389
    const-string v1, "tot:sms"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 403
    :cond_19
    :goto_2
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1b

    .line 405
    if-eqz v0, :cond_1a

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_1a
    const/4 v0, 0x1

    .line 406
    const-string v1, "to:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 407
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->EncodeProtocolString(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    .line 408
    invoke-virtual {p1, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 412
    :cond_1b
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 414
    if-eqz v0, :cond_1c

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_1c
    const/4 v0, 0x1

    .line 415
    const-string v1, "dpn:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 416
    iget-object v1, p0, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->EncodeProtocolString(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    .line 417
    invoke-virtual {p1, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto/16 :goto_1

    .line 391
    :cond_1d
    const/4 v1, 0x2

    iget v2, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v1, v2, :cond_1f

    .line 393
    if-eqz v0, :cond_1e

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_1e
    const/4 v0, 0x1

    .line 394
    const-string v1, "tot:email"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_2

    .line 396
    :cond_1f
    iget v1, p0, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v7, v1, :cond_19

    .line 398
    if-eqz v0, :cond_20

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_20
    const/4 v0, 0x1

    .line 399
    const-string v1, "tot:glympse"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto :goto_2
.end method
